<?php$dataType = "json";$response_type = "code";$grant_type = "authorization_code";$client_id = "您的csdn app key";$client_secret = "您的csdn app secret";$redirect_uri = "token_csdn.php文件在线上访问的完整url";$codeurl = "http://api.csdn.net/oauth2/authorize";$tokenurl = "http://api.csdn.net/oauth2/access_token?";$userurl = "http://api.csdn.net/user/getinfo";$usercateurl = "http://api.csdn.net/blog/getcategorylist";$syscateurl = "http://api.csdn.net/blog/getchannel";?>